#ifndef BULLET_H
#define BULLET_H
#include"base.h"
#include"maps.h"

class bullet :public base
{ Q_OBJECT
public:
    void attackplayer();
    void attackenemy(int num);
    QString pic=":/:/new/wall/image/item/bullet1.png";
    bullet(){};
    ~bullet()=default;
    void breakwall();
    bool moving=false;
    void setbullet
    (int x=0,int y=0,int spe=10,int direct=1)
    {posx=x;
        posy=y;
        direction=direct;
        speed=spe;

    }
};
#endif
